/*

*** This do file creates the replication results for 

Corruption, the Resource Curse and Genuine Saving (with Simon Dietz and Indra de Soysa), Environment and Development Economics, 12 (1), 2007, 33-53

Eric Neumayer (LSE)																			

Please report any errors to e.neumayer@lse.ac.uk

*/


use "Article for Environment and Development Economics.dta", clear


* Table I
quietly xi: xtreg grosssavgni lngnipcap lgrowth agedep urban qual resourcesexp resourcesexpqual i.year, fe robust
su grosssavgni gensavgnico2adjusted100 lngnipcap lgrowth agedep urban resourcesexp corr qual rule if e(sample)
corr grosssavgni gensavgnico2adjusted100 lngnipcap lgrowth agedep urban resourcesexp corr qual rule if e(sample)

* Gross Savings
* Table II
xi: xtreg grosssavgni lngnipcap lgrowth agedep urban corr resourcesexp resourcesexpcorr i.year, fe robust
xi: xtreg grosssavgni lngnipcap lgrowth agedep urban qual resourcesexp resourcesexpqual i.year, fe robust
xi: xtreg grosssavgni lngnipcap lgrowth agedep urban rule resourcesexp resourcesexprule i.year, fe robust

* Table III
xi: xtabond grosssavgni lngnipcap growth agedep urban corr resourcesexp resourcesexpcorr i.year, robust
xi: xtabond grosssavgni lngnipcap growth agedep urban corr resourcesexp resourcesexpcorr i.year, twostep
xi: xtabond grosssavgni lngnipcap growth agedep urban qual resourcesexp resourcesexpqual i.year, robust
xi: xtabond grosssavgni lngnipcap growth agedep urban qual resourcesexp resourcesexpqual i.year, twostep
xi: xtabond grosssavgni lngnipcap growth agedep urban rule resourcesexp resourcesexprule i.year, robust
xi: xtabond grosssavgni lngnipcap growth agedep urban rule resourcesexp resourcesexprule i.year, twostep


* Genuine Savings
* Full sample
* Table IV
xi: xtreg gensavgnico2adjusted100 lngnipcap lgrowth agedep urban corr resourcesexp resourcesexpcorr i.year, fe robust
xi: xtreg gensavgnico2adjusted100 lngnipcap lgrowth agedep urban qual resourcesexp resourcesexpqual i.year, fe robust
xi: xtreg gensavgnico2adjusted100 lngnipcap lgrowth agedep urban rule resourcesexp resourcesexprule i.year, fe robust

* Table V
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban corr resourcesexp resourcesexpcorr i.year, robust
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban corr resourcesexp resourcesexpcorr i.year, twostep
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban qual resourcesexp resourcesexpqual i.year, robust
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban qual resourcesexp resourcesexpqual i.year, twostep
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban rule resourcesexp resourcesexprule i.year, robust
xi: xtabond gensavgnico2adjusted100 lngnipcap growth agedep urban rule resourcesexp resourcesexprule i.year, twostep


